home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / ctutor2 / stringin.c < prev    next >
Text File  |  1986-01-27  |  384b  |  16 lines

  1. #include "stdio.h"
  2.  
  3. main()
  4. {
  5. char big[25];
  6.  
  7.     printf("Input a character string, up to 25 characters.\n");
  8.     printf("An X in column 1 causes the program to stop.\n");
  9.  
  10.     do {
  11.        scanf("%s",big);
  12.        printf("The string is -> %s\n",big);
  13.     } while (big[0] != 'X');
  14.  
  15.     printf("End of program.\n");
  16. }